$(document).ready(function () {

    $("#login-button").click(function () {
        $("#loading").css("display","block");
        $.get("/fileSys/userLoginServlet", {username: username.value, pwd: password.value}, function (data, status) {
            $("#loading").css("display","none");
            if (status == "success") {

                if (data.msg == 0) {
                    /* alert("登陆成功"); */
                    window.location = "/fileSys/index.html";
                    /* document.location.href='/index.html'; */
                } else {
                    alert(data.msg);
                }
            }
        })
    });


});